<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>slibc: slibc/stdlib.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">slibc
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_4d4a740b65ecc1faa3510c186d2f00c5.html">slibc</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">stdlib.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="stdlib_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (C) 2011-2012 SBA Research gGmbh</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">   This file is part of the Slibc Library.</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">   The Slibc Library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment">   modify it under the terms of the GNU Lesser General Public</span>
<a name="l00007"></a>00007 <span class="comment">   License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">   version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">   The Slibc library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">   Lesser General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">   You should have received a copy of the GNU Lesser General Public</span>
<a name="l00016"></a>00016 <span class="comment">   License along with the Slibc Library; if not, see</span>
<a name="l00017"></a>00017 <span class="comment">   &lt;http://www.gnu.org/licenses/&gt;.  </span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include_next &lt;stdlib.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef SLIBC_STDLIB_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define SLIBC_STDLIB_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="comment">// TR 24731-1 is not available if __STDC_WANT_LIB_EXT1__ equals 0</span>
<a name="l00029"></a>00029 <span class="preprocessor">#if (!defined(__STDC_WANT_LIB_EXT1__) || (__STDC_WANT_LIB_EXT1__ != 0))</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;./base_.h&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="errno_8h.html" title="TR 24731-1 errno.h defines the type errno_t.">./errno.h</a>&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="stddef_8h.html" title="TR 24731-1 stddef.h defines the type rsize_t.">./stddef.h</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 SLIBC_BEGIN_DECLS
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="comment">//TR 24731-1 addition to stdlib.h</span>
<a name="l00038"></a>00038 
<a name="l00041"></a><a class="code" href="stdlib_8h.html#a8bf1b3817b7b2ccf6509574183f347e6">00041</a> <span class="keyword">typedef</span> void (*<a class="code" href="stdlib_8h.html#a8bf1b3817b7b2ccf6509574183f347e6" title="Definition of callback-type constraint_handler_t.">constraint_handler_t</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span> * restrict msg,
<a name="l00042"></a>00042                                                                          <span class="keywordtype">void</span> * restrict ptr,
<a name="l00043"></a>00043                                                                          errno_t error);
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 
<a name="l00065"></a>00065 <a class="code" href="stdlib_8h.html#a8bf1b3817b7b2ccf6509574183f347e6" title="Definition of callback-type constraint_handler_t.">constraint_handler_t</a> <a class="code" href="stdlib_8h.html#a5fedeb6856ec1477ecc1c2ecc212d210" title="The set_constraint_handler function sets a user-specified constraint handler.">set_constraint_handler_s</a>(<a class="code" href="stdlib_8h.html#a8bf1b3817b7b2ccf6509574183f347e6" title="Definition of callback-type constraint_handler_t.">constraint_handler_t</a> handler);
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 
<a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="stdlib_8h.html#a5f7c65f13b04de4b1b9685481dd75c1b" title="The abort handler gives out an errormessage on stderr before it ends the program with the function ab...">abort_handler_s</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * restrict msg,
<a name="l00071"></a>00071                                          <span class="keywordtype">void</span> * restrict ptr,
<a name="l00072"></a>00072                                          errno_t error);
<a name="l00073"></a>00073 
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="stdlib_8h.html#a69a3eae83a143f09ff7a1111db714ec5" title="the ignore_handler_s is used to ignore constraint violations it does nothing">ignore_handler_s</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * restrict msg,
<a name="l00077"></a>00077                                           <span class="keywordtype">void</span> * restrict ptr,
<a name="l00078"></a>00078                                           errno_t error);
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00114"></a>00114 errno_t <a class="code" href="stdlib_8h.html#ac8fafcc6bb7a1d060f0e6a1e87a66da0" title="The getenv_s function gets the value of an environment variable.">getenv_s</a>(<span class="keywordtype">size_t</span> * restrict len,
<a name="l00115"></a>00115                                  <span class="keywordtype">char</span> * restrict value, rsize_t maxsize,
<a name="l00116"></a>00116                                  <span class="keyword">const</span> <span class="keywordtype">char</span> * restrict name);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 errno_t <a class="code" href="stdlib_8h.html#a645354c8bb78f135fe95ed5420eedc69" title="This function sorts an array in ascending order.">qsort_s</a>(<span class="keywordtype">void</span> *base, rsize_t nmemb, rsize_t size, 
<a name="l00145"></a>00145                                 <span class="keywordtype">int</span> (*compar) (<span class="keyword">const</span> <span class="keywordtype">void</span> *x, <span class="keyword">const</span> <span class="keywordtype">void</span> *y,
<a name="l00146"></a>00146                                                                 <span class="keywordtype">void</span> *context),
<a name="l00147"></a>00147                                 <span class="keywordtype">void</span> *context
<a name="l00148"></a>00148                         );
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <span class="keywordtype">void</span> *<a class="code" href="stdlib_8h.html#a338a507f5f7e51bb8690391ae4f55aef" title="This function performs a binary search of a sorted array.">bsearch_s</a> (<span class="keyword">const</span> <span class="keywordtype">void</span> *key, <span class="keyword">const</span> <span class="keywordtype">void</span> *base, rsize_t nmemb, rsize_t size,
<a name="l00176"></a>00176                                 <span class="keywordtype">int</span> (*compar) (<span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keywordtype">void</span> *context),
<a name="l00177"></a>00177                                 <span class="keywordtype">void</span> *context);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="comment">// wctomb_s currently not implemented</span>
<a name="l00181"></a>00181 <span class="comment">// mbstowcs_s currently not implemented</span>
<a name="l00182"></a>00182 <span class="comment">// wcstombs_s currently not implemented </span>
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 SLIBC_END_DECLS
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="preprocessor">#endif //#if (!defined(__STDC_WANT_LIB_EXT1__) || (__STDC_WANT_LIB_EXT1__ != 0))</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span>
<a name="l00188"></a>00188 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 31 2012 13:48:20 for slibc by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
